package com.mycompany.services.dao;

import java.util.List;

import org.hibernate.SessionFactory;

import com.mycompany.optimizaproject.Incidente;
import com.mycompany.optimizaproject.Solucion;

public class SolucionDAO extends AbstractHibernateDAO<Solucion, Integer> {

	public SolucionDAO(SessionFactory sessionFactory){
		setSessionFactory(sessionFactory);
	}
	@Override
	protected Class<Solucion> getDomainClass() {
		return Solucion.class;
	}
	
	public List<Solucion> getSolucionPorIdIncidente(Long i){
		return getHibernateTemplate().find("from Solucion where idIncidente=" + i);
	}
}
